package com.foreveross.crawl.common.jpa;

import com.foreveross.crawl.common.exception.CustomRuntimeException;
import com.foreveross.crawl.common.exception.enums.TaskStatusEnum;

public class HBaseJpaException extends CustomRuntimeException {
	
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -3415142030721867367L;

	public HBaseJpaException(){
		super(String.format("error code[%s]:", TaskStatusEnum.TASK_RUNTIME.getStatus(), TaskStatusEnum.TASK_RUNTIME.getRemark()));
	}
		
	public HBaseJpaException(String message){
		super(String.format("error code[%s]:", TaskStatusEnum.TASK_RUNTIME.getStatus(), message));
	}
	
	public HBaseJpaException(Exception ex){
		super(String.format("error code[%s]:", TaskStatusEnum.TASK_RUNTIME.getStatus(), TaskStatusEnum.TASK_RUNTIME.getRemark()), ex);
	}
	
	public HBaseJpaException(String message,Throwable rootCause){
		super(String.format("error code[%s]:", TaskStatusEnum.TASK_RUNTIME.getStatus(), message), rootCause);
	}
	
	public HBaseJpaException(String message, Exception ex){
		super(String.format("error code[%s]:", TaskStatusEnum.TASK_RUNTIME.getStatus(), message), ex);
	}
}
